package org.angelica.modules.account.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.angelica.common.query.BaseQuery;
import org.angelica.modules.account.entity.AccPermissionDO;

import java.util.List;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author aizhimin
 * @since 2019-05-13
 */
public interface AccPermissionService extends IService<AccPermissionDO> {

    /**
     * 查询权限
     * @param baseQuery
     * @return
     */
    IPage<AccPermissionDO> listPermission(BaseQuery baseQuery);

    /**
     * 查询权限，并组装成树状结构
     * @return
     */
    List<AccPermissionDO> listTreeData();

}
